/**
 * 
 */
package com.gmail.sabujdas.patterns.absfactory;

import com.gmail.sabujdas.patterns.absfactory.model.Acid;
import com.gmail.sabujdas.patterns.absfactory.model.OrganicAcid;
import com.gmail.sabujdas.patterns.absfactory.model.OrganicSalt;
import com.gmail.sabujdas.patterns.absfactory.model.Salt;


/**
 * @author Sabuj Das | sabuj.das@gmail.com
 *
 */
public class OrganicFactory extends ChemicalFactory{

	private static final ChemicalType DEFAULT_TYPE = ChemicalType.ORGANIC;
	
	
	public Salt createSalt(String name) {
		OrganicSalt organicSalt = new OrganicSalt(name);
		organicSalt.setType(DEFAULT_TYPE);
		return organicSalt;
	}

	public Acid createAcid(String name) {
		OrganicAcid organicAcid = new OrganicAcid(name);
		organicAcid.setType(DEFAULT_TYPE);
		return organicAcid;
	}

	
	
	
	
}
